<template>
  <div class="page">
    <!-- header -->
    <van-nav-bar
      :z-index="999"
      :fixed="true"
      left-arrow
      @click-left="onClickLeft"
      :placeholder="true"
      title="模拟考试"
    ></van-nav-bar>
    <div class="app-page">
      <div class="mnks-wrap">
        <div class="mnks-grid">
          <van-cell center>
            <template #icon>
              <div class="mnks-avatar">
                <img src="../../assets/news6.jpg" alt />
              </div>
            </template>
            <template #title>
              <div class="mn-tit">模拟考试</div>
              <div class="mn-desc">您还没考试过</div>
            </template>
          </van-cell>
        </div>
        <div class="mnks-info">
          <div class="mnks-info-item">
            <span class="tit">考试科目：</span>
            <span class="content">科目一理论考试</span>
          </div>
          <div class="mnks-info-item">
            <span class="tit">考试题库：</span>
            <span class="content">小车（C1,C2,C3）</span>
          </div>
          <div class="mnks-info-item">
            <span class="tit">考试标准：</span>
            <span class="content">100题，45分钟</span>
          </div>
          <div class="mnks-info-item">
            <span class="tit">合格标准：</span>
            <span class="content">90分及格</span>
          </div>
          <div class="mnks-info-item">
            <span class="tit">出题规则：</span>
            <span class="content">交管局出题规则</span>
          </div>
        </div>
        <!-- 答题不可修改，累计错题分数达到不及格标准时，系统自动提醒交卷，考试不通过 -->
        <div class="mnks-tips">
          答题不可修改，累计错题分数达到不及格标准，系统自动提醒交卷，考试不通过
        </div>
        <div class="mnks-btns">
          <van-button @click="href('/PracticeTest')" type="primary" block round
            >全真模拟考试</van-button
          >
          <!-- <van-button type="primary" block round plain>考前秘卷</van-button> -->
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      text: ""
    };
  },
  methods: {
    href(url) {
      if (localStorage.getItem("token") || sessionStorage.getItem("token")) {
        this.$router.push({ path: url + "/" + this.$route.params.type });
      } else {
        this.$router.push({ path: "/AuthCode" });
      }
    },

    onClickLeft() {
      this.$router.go(-1); //返回上一层
    }
  },
  created() {
    let dsBridge = require("dsbridge");
    dsBridge.call("goBack", "", function() {
      history.go(-1);
    });
  }
};
</script>
<style></style>
